package crawlertest.crawler;

import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class ShareVars 
{	
	public static Queue<String> workurls=new LinkedList<String>();
	
	public static HashSet<String> avisit=new HashSet<String>();
	
	public static ExecutorService es=Executors.newFixedThreadPool(500);
	public static int num=1;//线程数
	
	public static volatile int finish=0;
	
	public static long count=1;//html文件数
	
	public static ReentrantLock lock1=new ReentrantLock();
	public static ReentrantLock lock2=new ReentrantLock();
	public static ReentrantLock lock3=new ReentrantLock();
	public static ReentrantLock lock4=new ReentrantLock();
	public static Condition empty=lock1.newCondition();
}
